		<div id="main-content">
            <?php
                $content = form_open_multipart('/admin/document/' . $form_route);
                $content .= form_label('Denumire:', 'frmDocumentName');
                $value = $document!=FALSE?$document['doc_name']:set_value('frmDocumentName');
                $content .= form_input(array('name' => 'frmDocumentName', 'id' => 'frmDocumentName', 'value' => $value));
                $content .= form_label('Descriere:', 'frmDocumentDesc');
                $value = $document!=FALSE?$document['doc_description']:set_value('frmDocumentDesc');
                $content .= form_textarea(array('name' => 'frmDocumentDesc', 'id' => 'frmDocumentDesc', 'value' => $value));
                $content .= form_label('Tipul documentului:', 'frmDocumentType');
                $documentType = array('R' => 'Reorganizare', 'I' => 'Insolventa', 'F' => 'Faliment', 'O' => 'Altele');
                $value = $document!=FALSE?$document['doc_type']:set_value('frmDocumentType');
                $content .= form_dropdown('frmDocumentType', $documentType, $value);
                $cnts = $contacts!=FALSE?$contacts:array();
                $cnts['0'] = 'Adauga societate';
                $content .= form_label('Societate:', 'frmDocumentOwner');
                $value = $document!=FALSE?$document['doc_owner']:set_value('frmDocumentOwner');
                $content .= form_dropdown('frmDocumentOwner', $cnts, $value);
                $cnts['0'] = 'Adauga persoana contact';
                $content .= form_label('Persoana de contact:', 'frmDocumentContact');
                $value = $document!=FALSE?$document['doc_contact']:set_value('frmDocumentContact');
                $content .= form_dropdown('frmDocumentContact', $cnts, $value);
                $content .= form_label('Logo:', 'frmDocumentFile');
                $content .= form_upload(array('name' => 'frmDocumentFile[]', 'id' => 'frmDocumentFile', 'value' => '', 'class' => 'multi', 'accept' => 'pdf|doc|xls|docx|xlsx', 'maxlength' => '1'));
                $content .= form_submit('frmDocumentSend', 'Adauga');
                $content .= form_close();
                echo $content;
            ?>			
		</div>
		
		<div class="clear"></div>
	</div>

</body>

</html>
